package com.idanchuang.component.web;

import com.idanchuang.component.web.cookie.MyDefaultSessionCookieConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yjy
 * @date 2019/10/12 16:57
 **/
@Configuration
public class ComponentWebAutoConfiguration {

    @Bean
    @ConfigurationProperties(prefix = "server.servlet.session.cookie")
    public MyDefaultSessionCookieConfig myDefaultSessionCookieConfig() {
        return new MyDefaultSessionCookieConfig();
    }

}
